package com.study.spmongodb.wwj.thread2.char09;

/**
 * @author study
 * @version 1.0
 * @date 2020/12/8 17:18
 */
public class SuspendsionClient {
    public static void main(String[] args) throws InterruptedException {

        final RequestQueue queue = new RequestQueue();
        new ClientThread(queue, "Alex").start();

        final ServerThread serverThread = new ServerThread(queue);
        serverThread.start();
        serverThread.join();
        serverThread.close();
    }
}
